home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 296_01.zip / README < prev    next >
Text File  |  1993-04-01  |  2KB  |  52 lines

  1. June 6 1989 C.D. Havener
  2.  
  3. This disk contains the C to C++ Migrator program ctocxx.exe
  4. and a pair of .bat files to run it. The ctocpp.bat file calls
  5. ctocpp1.bat.  The MKS sed stream editor must be available or
  6. the final editing cannot be done. A small sampl.c program that
  7. does nothing but exhibits various function declaration styles
  8. is the sample input. 
  9.  
  10. Usage: ctocpp sampl.c
  11.  
  12. This invokes the Microsoft C compiler with the /E option.
  13. The preprocessed source file will then be fed to ctocxx.exe.
  14. This version of ctocxx does not echo the input, if a syntax
  15. error occurs it reports the line number and column and quits.
  16. The output of ctocxx.exe is two files,
  17. proto.out and ed.out. The ed.out file is used by the sed
  18. stream editor to edit the original source file. The proto.out
  19. file is used in header files as required.
  20.  
  21.  
  22. The sampl.sed file is what the sampl.c becomes after editing.
  23.  
  24. ------------------------------------------------------------
  25.  
  26. This disk also contains the article and the source files to
  27. be listed with the article. The source files have been stripped
  28. tabs, all indenting is by spaces. EXAMPLE is a combined listing
  29. of the sampl.c input, the outputs and the result after sed edits
  30. the original source file. It is the first referenced listing
  31. in the article.
  32.  
  33. The full grammar is gram.y ( over 400 lines ) which may be too
  34. much to use in the magazine. I have provided little.y which
  35. includes mainly just the productions that the migrator has
  36. code attached to. I left the tabs in the grammar.
  37.  
  38. The other source files are ctocxx.l, subs.c, ctocxx.c and the
  39. header ctocxx.h. Yacc makes ytab.h when it runs but I have
  40. included it on the disk. The ctocxx file is a makefile for
  41. Microsoft C 5.1. The ctocpp.bat and ctocpp1.bat comprise a
  42. DOS batch file for running the migrator.
  43.  
  44. I have copied the flex executables into the flex directory.
  45. You must have MKS yacc and sed to build and run the program.
  46. -------------------------------------------------------------
  47.  
  48. Charlie Havener 508-369-4400 x3302    ( home 508-897-4499 )
  49.  
  50.  
  51. The article needs one figure which is not on the disk.
  52.